﻿@using Pyramid.Models
@using Pyramid.Mvc.Html
@model MemberCenter

<div class="pageContent">
	@using (Html.BeginForm("Edit","MemberCenter",FormMethod.Post, new {@class = "pageForm required-validate", onsubmit = "return validateCallback(this, navTabAjaxDone);"}))
	{
		<div class="pageFormContent" layouth="60">
			@Html.HiddenFor(x=>x.Id)
			<p>
				@Html.LabelFor(model=>model.Code)
				@Html.CodeFieldFor(model => model.Code)
			</p>
			<p>
				@Html.LabelFor(model=>model.Name)
				@Html.TextBoxFor(model => model.Name, new {@class = "required", minlength = "2", maxlength = "20"})
			</p>
			<p>
				@Html.LabelFor(model=>model.EstablishDate)
				@Html.DateInputFor(model=>model.EstablishDate, "required")
			</p>
			<p>
				@Html.LabelFor(model=>model.Bosshead)
				@Html.TextBoxFor(model=>model.Bosshead, "required")
			</p>
			<p>
				@Html.LabelFor(model=>model.BossheadIdCard)
				@Html.TextBoxFor(model=>model.BossheadIdCard, new {@class="required"})
			</p>
			<div class="divider"></div>
			<p>
				@Html.LabelFor(model=>model.CreateUserId)
				@Html.ReadonlyFieldFor(model=>model.CreateUserId)
			</p>
			<p>
				@Html.LabelFor(model=>model.CreateTime)
				@Html.ReadonlyDateTimeFor(model=>model.CreateTime)
			</p>
			<p>
				@Html.LabelFor(model=>model.EditUserId)
				@Html.ReadonlyFieldFor(model=>model.EditUserId)
			</p>
			<p>
				@Html.LabelFor(model=>model.EditTime)
				@Html.ReadonlyDateTimeFor(model=>model.EditTime)
			</p>
		</div>
		<div class="formBar">
			<ul>
				<li>
					<div class="buttonActive">
						<div class="buttonContent">
							<button type="submit">保存</button>
						</div>
					</div>
				</li>
				<li>
					<div class="button">
						<div class="buttonContent">
							<button type="button" class="close">取消</button>
						</div>
					</div>
				</li>
			</ul>
		</div>
	}
</div>